﻿<%@ Page Language="C#" ViewStateMode="Enabled" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="CaptchaDemoWebsite._Default" %>

<%@ Register Assembly="CaptchaControl" Namespace="LM.CaptchaControl" TagPrefix="cc1" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Captcha control example</title>
    <link href="assets/bootstrap/css/bootstrap.css" rel="stylesheet" />
    <link href="assets/bootstrap/css/bootstrap-theme.css" rel="stylesheet" />
    <script type="text/javascript" src="assets/jquery/jquery-1.11.3.min.js"></script>
    <script type="text/javascript" src="assets/bootstrap/js/bootstrap.js"></script>
    <script type="text/javascript" src="assets/SoundManager/soundmanager2.js"></script>
    <script type="text/javascript">
        soundManager.setup({
            useFlashBlock: true,
            url: 'swf/'
        });

        soundManager.onready(function (oStatus) {
            if (!oStatus.success) {
                return false;
            }
        });
    </script>
    <style type="text/css">
        .margin-20 {
            margin: 20px;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
        <div class="container">
            <div class="row row margin-20">
                <asp:DropDownList ID="cmbLanguages" runat="server" CssClass="form-control" AutoPostBack="True" OnSelectedIndexChanged="cmbLanguages_SelectedIndexChanged">
                    <asp:ListItem Value="en-us">English</asp:ListItem>
                    <asp:ListItem Value="es-es">Español</asp:ListItem>
                </asp:DropDownList>
            </div>
            <div class="row row margin-20">
                <asp:ValidationSummary runat="server" ID="vcaptcha" CssClass="alert alert-danger fade in" DisplayMode="List" />
            </div>
            <cc1:captchacontrol id="captchacontrol1" enableviewstate="true" runat="server" captchabackgroundnoise="extreme" captchafontwarping="medium" captchacolor="blue" enabletheming="true" cssclass="container-fluid" captchachars="acdefghjklnpqrtuvxyz123456789" ></cc1:captchacontrol>
            <div class="row margin-20">
                <asp:Button ID="Button1" CssClass="btn btn-sm btn-success" runat="server" OnClick="Button1_Click" Text="Submit" />
            </div>
        </div>
    </form>
</body>

</html>
